#include "Heap.h"

void Test()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 6);
	HeapPush(&hp, 63);
	HeapPush(&hp, 16);
	HeapPush(&hp, 3);
	HeapPush(&hp, 36);
	HeapPush(&hp, 69);
	HeapPush(&hp, 11);
	HeapPush(&hp, 4);
	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.a[i]);
	}
	printf("\n");

	/*printf("%d\n", heapTpo(&hp));
	printf("%d\n", HeapSize(&hp));*/

	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);

	/*printf("%d\n", heapTpo(&hp));
	printf("%d\n", HeapSize(&hp));*/

	for (int i = 0; i < hp.size; i++)
	{
		printf("%d ", hp.a[i]);
	}
	printf("\n");


	//HeapDestroy(&hp);
}

int main()
{
	Test();
	return 0;
}